
#include "fox.h"
#include "empty.h"

State FoxUnit::getState()
{
	return FOX;
}

State FoxUnit::nextState()
{
	round();
	if (sum[FOX]>TMFOX)
	{
		return EMPTY;
	}
	else
	{
		if (age>DFOX)
		{
			return EMPTY;
		} 
		else
		{
			return FOX;
		}
	}
}


void FoxUnit::round()
{
	world->sums(pos,sum);
}